#ifndef TABLEHANDLER_H
#define TABLEHANDLER_H

#include <QStandardItemModel>
#include <QTableView>
#include "FileParser.h"
/*This class creates the model views for other functions to display.
  It creates a model and views from the data retrieves from the CSV file*/

class TableHandler
{
    public:
        TableHandler();
        TableHandler(char* name);
        TableHandler(FileParser& fileParser, char* name);
        QStandardItemModel *getModel();
        void setHeaders(QStringList& headers);
        void setModelItemRows(QList<QStringList*>& items);
        QTableView* getViewPointer();
    private:
        QStandardItemModel mModel;
		QTableView mView;
};

#endif // TABLEHANDLER_H
